<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" language="java" import="com.badou.brms.cfg.syscache.SystemSetting"%>
<%
		request.setAttribute("contactphone", SystemSetting.getLocalBaseDefine().getContactphone());
		request.setAttribute("contactqq", SystemSetting.getLocalBaseDefine().getContactqq());
		request.setAttribute("contactemail", SystemSetting.getLocalBaseDefine().getContactemail());
%>
<%@ include file="/pub/head_latest.inc"%>
<!-- exception.jsp 00-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>系统警告</title>
    <!-- <style type="text/css">
    	#errorPageContainer {
		  position: relative;
		  min-width: 15em;
		  max-width: 40em;
		  min-height: 15em;
		  margin: 4em auto;
		  border: 1px solid ThreeDShadow;
		  border-radius: 10px;
		  padding: 3em;
		  -moz-padding-start: 30px;
		  background: url(${baseURL}/pub/images/error_06.png) left 0 no-repeat;
		  background-origin: content-box;
		}
		
		#errorPageContainer.certerror {
		  background-image: url(${baseURL}/pub/images/error_03.png);
		}
		
		#errorPageContainer:-moz-dir(rtl) {
		  background-position: right 0;
		}
		
		#errorTitle {
		  -moz-margin-start: 80px;
		}
		
		#errorLongContent {
		  -moz-margin-start: 80px;
		}
		
		#errorShortDesc > img {
		  overflow: auto;
		
		  padding-bottom: 1em;
		  font-size: 130%;
		  white-space: pre-wrap;
		  padding-left:40px;
		  margin-left:50px;
		  
		}
		
		#errorLongDesc {
		  -moz-padding-end: 3em;
		  font-size: 110%;
		  padding-left:80px;
		}
		
		#errorLongDesc > img {
		}
		
		#errorTryAgain {
		  margin-top: 1em;
		  -moz-margin-start: 80px;
		  margin-left: 8em;
		  align:right;
		}
    </style> -->
<style type="text/css">
.eContent{margin: 0 auto;width: 700px;background: url(${baseURL}/pub/images/error1.png) no-repeat;height: 410px;position: relative;top: 200px;}
.eContent .text-wrap{position: absolute;left: 380px;bottom: 22px;}
.eContent .text-wrap h3{font-weight: normal;font-size: 20px;margin: 0 0 10px 0;color: #333;}
.eContent .text-wrap p{font-size: 14px;color: #666;margin: 0;line-height: 2;}
.eContent .text-wrap .ebtn{height: 30px;line-height: 15px;padding: 0 15px;font-size: 14px;color: #fff;letter-spacing: 2px;margin-top: 10px;border: 1px solid #2374b4;border-radius: 2px;background: #2684ce;cursor: pointer;}
.eContent .icon{display: inline-block;background: url(${baseURL}/pub/images/imgs.png) no-repeat;}
.eContent .e-arrow-lt{width: 14px;height: 14px;background-position: -513px -0px;vertical-align: middle;margin-left: 8px;}
</style>
</head>
<body>
	<!--<div xmlns="http://www.w3.org/1999/xhtml" id="errorPageContainer">
    <img src="${baseURL}/pub/images/error_06.png"></img>
      --><!-- Error Title --><!--
      <div id="errorTitle">
        <h1 id="errorTitleText">${errorMessage}</h1>
      </div>
      
      --><!-- LONG CONTENT (the section most likely to require scrolling) -->
      
      <!-- <div id="errorPageContainer"> -->
        <!-- Short Description -->
        <%-- <div id="errorShortDesc">
         <img src="${baseURL}/pub/images/error_03.png" alt="" />
        </div> --%>

        <!-- Long Description (Note: See netError.dtd for used XHTML tags) -->
        <%-- <div id="errorLongDesc">
  <li>如您对以上信息有疑问，请联系系统管理人员。</li>
  <li>管理员主页: http://www.badousoft.com/</li>
   <li>管理员电话: 
  <c:if test="${empty contactphone}">
  13682280140
  </c:if>
  <c:if test="${!empty contactphone}">
  ${contactphone}
  </c:if>
  </li>
  <li>管理员QQ: 
  <c:if test="${empty contactqq}">
  1107656092
  </c:if>
  <c:if test="${!empty contactqq}">
  ${contactqq}
  </c:if>
  </li>
  <li>管理员邮箱: 
  <c:if test="${empty contactemail}">
  badoumarket@126.com
  </c:if>
  <c:if test="${!empty contactemail}">
  ${contactemail}
  </c:if>
  </li>
  <li>异常信息: <s:property value="exception"/> </li></ul>
<div id="detail" style="display: none" >
输出异常堆栈信息:<br/><s:property value="exceptionStack" /></div>
</div> --%>


        <!-- Override section - For ssl errors only.  Removed on init for other
             error types.  -->


      <!-- Retry Button -->
      <!-- <button id="errorTryAgain" autocomplete="off"  class="l-button l-button-submit"  onclick="retryThis();" autofocus="true">重试</button>
      <button id="errorTryAgain" autocomplete="off"  class="l-button l-button-submit"  onclick="exceptionStack()" autofocus="true">详细错误</button>
    </div> -->
    <div class="eContent">
	<div class="text-wrap">
		<h3>服务器内部错误！</h3>
		<p>如您对以上信息有疑问，请联系系统管理人员</p>
		<p>管理员主页: http://www.badousoft.com/</li>
   				<p>管理员电话: 
  					<c:if test="${empty contactphone}">
  						13682280140
  					</c:if>
  					<c:if test="${!empty contactphone}">
  						${contactphone}
  					</c:if>
  				</p>
  				<p>管理员QQ: 
  					<c:if test="${empty contactqq}">
  						1107656092
  					</c:if>
  					<c:if test="${!empty contactqq}">
  						${contactqq}
  					</c:if>
  				</p>
  				<p>管理员邮箱: 
  					<c:if test="${empty contactemail}">
  						badoumarket@126.com
  					</c:if>
  					<c:if test="${!empty contactemail}">
  						${contactemail}
  					</c:if>
  				</p>
		<p>异常信息: <s:property value="exception"/></p>
		<div id="detail" style="display: none" ><s:property value="exceptionStack" /></div>
		<button id="btnClose" autocomplete="off" class="ebtn ebtn-blue">关闭</button>
		<button autocomplete="off"  class="ebtn ebtn-blue"  onclick="exceptionStack()" autofocus="true">详细错误<i class="icon e-arrow-lt"></i></button>
	</div>
</div>
	<script>
	$(function (){
	     //关闭
	     $("#btnClose").click(function(){
	    	 if (parent.tab){
	    		 parent.tab.removeTabItem(parent.tab.getSelectedTabItemID());
	         }else{
	        	 window.close();
	         }
	     });
	});
	function exceptionStack(){
		var detailWin = $.ligerDialog.open({
            	  title: '错误信息弹出框',
                  target: $("#detail"),
                  width: 1000, height: 450,top:10,
                  buttons: [
                  { text: '取消', onclick: function () { detailWin.hide(); } }
                  ]
              });
	}
	</script>
	
</body>
</html>
